home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / C / Applications / Moscow ML 1.42 / examples / cgi / Makefile < prev    next >
Encoding:
Makefile  |  1997-08-18  |  1.2 KB  |  62 lines  |  [TEXT/R*ch]

  1. # Unix Makefile stub for separate compilation with Moscow ML.  
  2.  
  3. # Edit this to point to the CGI binaries directory on your webserver:
  4.  
  5. WWWCGIBIN=/var/lib/httpd/cgi-bin/sestoft
  6.  
  7. MOSMLHOME=${HOME}/mosml
  8. MOSMLTOOLS=camlrunm $(MOSMLHOME)/tools
  9. MOSMLC=mosmlc -c
  10. MOSMLL=mosmlc
  11. MOSMLLEX=mosmllex
  12. MOSMLYACC=mosmlyac
  13.  
  14. .SUFFIXES :
  15. .SUFFIXES : .sig .sml .ui .uo
  16.  
  17. all: cgiex1 cgiex2
  18.  
  19. cgiex1: cgiex1.uo
  20.     mosmlc -noheader -o cgiex1 cgiex1.uo 
  21.  
  22. cgiex2: cgiex2.uo
  23.     mosmlc -noheader -o cgiex2 cgiex2.uo 
  24.  
  25. cgitest: cgitest.uo
  26.     mosmlc -noheader -o cgitest cgitest.uo 
  27.  
  28. install:
  29.     cat `which camlrunm` cgiex1 > ${WWWCGIBIN}/cgiex1
  30.     chmod a+x ${WWWCGIBIN}/cgiex1
  31.     cat `which camlrunm` cgiex2 > ${WWWCGIBIN}/cgiex2
  32.     chmod a+x ${WWWCGIBIN}/cgiex2
  33.  
  34. uninstall:
  35.     rm -f ${WWWCGIBIN}/cgiex1
  36.     rm -f ${WWWCGIBIN}/cgiex2
  37.     rm -f ${WWWCGIBIN}/cgitest
  38.  
  39. installcgitest:
  40.     cat `which camlrunm` cgitest > ${WWWCGIBIN}/cgitest
  41.     chmod a+x ${WWWCGIBIN}/cgitest
  42.  
  43. clean:
  44.     rm -f *.ui
  45.     rm -f *.uo
  46.     rm -f cgiex1 cgiex2 cgitest
  47.     rm -f Makefile.bak
  48.  
  49. .sig.ui:
  50.     $(MOSMLC) $<
  51.  
  52. .sml.uo:
  53.     $(MOSMLC) $<
  54.  
  55. depend: 
  56.     rm -f Makefile.bak
  57.     mv Makefile Makefile.bak
  58.     $(MOSMLTOOLS)/cutdeps < Makefile.bak > Makefile
  59.     $(MOSMLTOOLS)/mosmldep >> Makefile
  60.  
  61. ### DO NOT DELETE THIS LINE
  62.